{extend name="web/official_common/pc/base" /}

{block name="content"}

<!--主体内容 开始-->
<div class="download">
    <!--右侧区域 开始-->
    <div id="right">
        <div class="right_title">
            <!--当前位置 开始-->
            <div id="location">
                <b>{:__l('index','Current position')}：</b>
                <a href="/" target="_self">{:__l('index','Website homepage')}</a> &nbsp;&gt;&gt;&nbsp;
                <a href="javascript:;">{:ze($res,'name')}</a> &nbsp;&gt;&gt;&nbsp;
                {if !empty($son_data)}
                <a href="javascript:;">{:ze($son_data,'name')}</a>
                {/if}
            </div>
            <!--当前位置 结束-->
            <h2>
                <img src="__ADDON__/images/titleleftbg.png" align="absmiddle">{:ze($res,'name')}
                <img src="__ADDON__/images/titlerightbg.png" align="absmiddle">
            </h2>
        </div>
        <div id="subchannel_main">
            <div id="subchannel">
                <ul class="subchannellist">
                    {foreach $res['son'] as $item}
                    <li class="depth1" {if $item['is_choose']} id="current" {/if}>
                    <a href="{:get_cate_url($item)}">{:ze($item,'name')}</a>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        <div class="right_body">
            <ul class="textlist">
                <!--循环开始-->
                {foreach $data as $index => $item}
                    <li>
                        <span class="float_right">
                            <a href="{:addon_url('official/web.official_download/download',[':pid'=>(int)input('param.pid'),':sid'=>(int)input('param.sid'),':id'=>$item['id']])}" target="_blank" >
                                <span class="btn btn-tiny">{:__l('download','Download')}</span>
                            </a>
                        </span>
                        <a href="javascript:;" title="{$item['title']}">{$item['title']}</a>
                    </li>
                {/foreach}
                <!--循环结束-->

            </ul>
            <div class="page_custom">
                <div class="page_son">
                    {$data->render(['pid'=>(int)input('param.pid'),'sid'=>(int)input('param.sid')])}
                </div>
            </div>
        </div>
        <div class="right_bottom"></div>
    </div>
    <!--右侧区域 结束-->
    <div class="clear"></div>
</div>
<!--主体内容 结束-->

{/block}